<template>
  <div class="p-5">
    <div class="back" @click="getback">返回</div>
    <div class="header">
      <span class="header-left">Matrice 4E</span>
      <div class="header-right">
        <p></p>
        <span>远程控制-手动飞行</span>
      </div>
    </div>
    <div class="drone">
      <div class="drone-left">
        <airlineview />
      </div>
      <div class="drone-right">
        <instrumentview></instrumentview>
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup>
import { ref, onMounted, onBeforeUnmount } from 'vue';
import airlineview from './module/airlineview.vue';
import instrumentview from './module/instrumentview.vue';

import { useRouter } from 'vue-router';
const router = useRouter();
const changeViewId = ref(1);
const getchangeView = (item) => {
  changeViewId.value = item;
};
</script>

<style lang="scss" scoped>
.back {
  position: absolute;
  top: 10px;
  left: 100px;
}

.p-5 {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  font-size: 16px;
  color: #fff;
  background: #707070;
  // background-image: url('../../../assets/u6030.jpg');
  // background-repeat: no-repeat;
  // background-size: 100%;

  .header {
    display: flex;
    height: 35px;
    font-size: 14px;
    line-height: 35px;

    .header-left {
      flex: 1;
      margin-left: 20px;
    }

    .header-right {
      flex: 1;
    }
  }
}

.drone {
  display: flex;

  .drone-left {
    width: 43%;
  }

  .drone-right {
    width: calc(57% - 10px);
    margin-left: 10px;
  }
}
</style>
